package com.mroapp.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.mroapp.R;
import com.mroapp.activity.NavigateParameterSettingActivity;

public class NavigationFragment extends Fragment implements View.OnClickListener{
    private TextView title_name;
    private RelativeLayout layout_parameter_setting;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view=inflater.inflate(R.layout.fragment_navigation,container,false);
        title_name=(TextView)view.findViewById(R.id.title_name);
        title_name.setText("导航");
        initView(view);
        return view;
    }
    public void initView(View view){
        layout_parameter_setting=(RelativeLayout)view.findViewById(R.id.layout_parameter_setting);
        layout_parameter_setting.setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.layout_parameter_setting:
                Intent intent=new Intent(NavigationFragment.this.getActivity(), NavigateParameterSettingActivity.class);
                startActivity(intent);
                break;
        }
    }
}
